<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>class DEBUGGER__::FrameInfo - debug: Ruby Standard Library Documentation</title>


<script src="../js/navigation.js" defer></script>
<script src="../js/search.js" defer></script>
<script src="../js/search_index.js" defer></script>
<script src="../js/searcher.js" defer></script>
<script src="../js/darkfish.js" defer></script>

<script src="../js/jquery-3.2.0.min.js"></script>

<script src="../js/vue.min.js"></script>
<script src="../js/js.cookie.min.js"></script>

<link href="../css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="../css/rdoc.css" rel="stylesheet">
<link href="../css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "../";
  var index_rel_prefix = "../";
  var darkModeCsseHref = "../css/rdoc-dm.css"
  var defaultModeCssHref = "../css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="class">
  <!-- this is class.html -->

  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    


    <nav id='vapp' role="navigation">
    <div id="project-navigation">
      <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="../index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="../table_of_contents.html#pages">Pages</a>
    <a href="../table_of_contents.html#classes">Classes</a>
    <a href="../table_of_contents.html#methods">Methods</a>
  </div>
</div>

      <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

    </div>


    

    <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>
    <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
      <div id="class-metadata">
        
        
<div id="parent-class-section" class="nav-section">
  <h3>Parent</h3>

  <p class="link"><a href="../Object.html">Object</a>
</div>

        
        
        
<!-- Method Quickref -->
<div id="method-list-section" class="nav-section">
  <h3>Methods</h3>

  <ul class="link-list" role="directory">
    <li ><a href="#method-c-pretty_path">::pretty_path</a>
    <li ><a href="#method-i-block_identifier">#block_identifier</a>
    <li ><a href="#method-i-c_identifier">#c_identifier</a>
    <li ><a href="#method-i-callee">#callee</a>
    <li ><a href="#method-i-eval_binding">#eval_binding</a>
    <li ><a href="#method-i-file_lines">#file_lines</a>
    <li ><a href="#method-i-frame_type">#frame_type</a>
    <li ><a href="#method-i-get_singleton_class">#get_singleton_class</a>
    <li ><a href="#method-i-iseq_parameters_info">#iseq_parameters_info</a>
    <li ><a href="#method-i-klass_sig">#klass_sig</a>
    <li ><a href="#method-i-local_variable_get">#local_variable_get</a>
    <li ><a href="#method-i-local_variables">#local_variables</a>
    <li ><a href="#method-i-location_str">#location_str</a>
    <li ><a href="#method-i-matchable_location">#matchable_location</a>
    <li ><a href="#method-i-method_identifier">#method_identifier</a>
    <li ><a href="#method-i-name">#name</a>
    <li ><a href="#method-i-other_identifier">#other_identifier</a>
    <li ><a href="#method-i-parameters_info">#parameters_info</a>
    <li ><a href="#method-i-path">#path</a>
    <li ><a href="#method-i-pretty_path">#pretty_path</a>
    <li ><a href="#method-i-realpath">#realpath</a>
    <li ><a href="#method-i-return_str">#return_str</a>
  </ul>
</div>

      </div>
     </div>
    </nav>


    <div id='extraz'><div class='adzbox-index'  >
      
     </div>         
    </div>

    <main role="main" aria-labelledby="class-DEBUGGER__::FrameInfo">
    <h1 id="class-DEBUGGER__::FrameInfo" class="class">
      class DEBUGGER__::FrameInfo
    </h1>

    <section class="description">
    
    </section>

      <section id="5Buntitled-5D" class="documentation-section">


      <section class="constants-list">
      <header>
      <h3>Constants</h3>
      </header>
      <dl>
          <dt id="BLOCK_LABL_REGEXP">BLOCK_LABL_REGEXP
          <dd>
          <dt id="HOME">HOME
          <dd>
        </dl>
        </section>



                <section id="public-class-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Class Methods</h3>
                </header>

                  <div id="method-c-pretty_path" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">pretty_path</span><span
                                class="method-args">(path)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="pretty_path-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 30</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">pretty_path</span> <span class="ruby-identifier">path</span>
  <span class="ruby-keyword">return</span> <span class="ruby-string">&#39;#&lt;none&gt;&#39;</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">path</span>
  <span class="ruby-identifier">use_short_path</span> = <span class="ruby-constant">CONFIG</span>[<span class="ruby-value">:use_short_path</span>]

  <span class="ruby-keyword">case</span>
  <span class="ruby-keyword">when</span> <span class="ruby-identifier">use_short_path</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">path</span>.<span class="ruby-identifier">start_with?</span>(<span class="ruby-identifier">dir</span> = <span class="ruby-constant">RbConfig</span><span class="ruby-operator">::</span><span class="ruby-constant">CONFIG</span>[<span class="ruby-string">&quot;rubylibdir&quot;</span>] <span class="ruby-operator">+</span> <span class="ruby-string">&#39;/&#39;</span>)
    <span class="ruby-identifier">path</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-string">&#39;$(rubylibdir)/&#39;</span>)
  <span class="ruby-keyword">when</span> <span class="ruby-identifier">use_short_path</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">Gem</span>.<span class="ruby-identifier">path</span>.<span class="ruby-identifier">any?</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">gp</span><span class="ruby-operator">|</span>
      <span class="ruby-identifier">path</span>.<span class="ruby-identifier">start_with?</span>(<span class="ruby-identifier">dir</span> = <span class="ruby-identifier">gp</span> <span class="ruby-operator">+</span> <span class="ruby-string">&#39;/gems/&#39;</span>)
    <span class="ruby-keyword">end</span>
    <span class="ruby-identifier">path</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-identifier">dir</span>, <span class="ruby-string">&#39;$(Gem)/&#39;</span>)
  <span class="ruby-keyword">when</span> <span class="ruby-constant">HOME</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">path</span>.<span class="ruby-identifier">start_with?</span>(<span class="ruby-constant">HOME</span>)
    <span class="ruby-identifier">path</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-constant">HOME</span>, <span class="ruby-string">&#39;~/&#39;</span>)
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">path</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

                <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Instance Methods</h3>
                </header>

                  <div id="method-i-block_identifier" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">block_identifier</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="block_identifier-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 87</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">block_identifier</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">frame_type</span> <span class="ruby-operator">==</span> <span class="ruby-value">:block</span>
  <span class="ruby-identifier">_</span>, <span class="ruby-identifier">level</span>, <span class="ruby-identifier">block_loc</span> = <span class="ruby-identifier">location</span>.<span class="ruby-identifier">label</span>.<span class="ruby-identifier">match</span>(<span class="ruby-constant">BLOCK_LABL_REGEXP</span>).<span class="ruby-identifier">to_a</span>
  [<span class="ruby-identifier">level</span> <span class="ruby-operator">||</span> <span class="ruby-string">&quot;&quot;</span>, <span class="ruby-identifier">block_loc</span>]
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-c_identifier" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">c_identifier</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="c_identifier-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 98</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">c_identifier</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">frame_type</span> <span class="ruby-operator">==</span> <span class="ruby-value">:c</span>
  <span class="ruby-node">&quot;[C] #{klass_sig}#{location.base_label}&quot;</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-callee" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">callee</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="callee-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 108</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">callee</span>
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">_callee</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword">begin</span>
                     <span class="ruby-keyword">self</span>.<span class="ruby-identifier">binding</span>&amp;.<span class="ruby-identifier">eval</span>(<span class="ruby-string">&#39;__callee__&#39;</span>)
                   <span class="ruby-keyword">rescue</span> <span class="ruby-constant">NameError</span> <span class="ruby-comment"># BasicObject</span>
                     <span class="ruby-keyword">nil</span>
                   <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-eval_binding" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">eval_binding</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="eval_binding-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 131</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">eval_binding</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">b</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">dupped_binding</span>
    <span class="ruby-identifier">b</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">b</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">binding</span> <span class="ruby-operator">||</span> <span class="ruby-constant">TOPLEVEL_BINDING</span>
    <span class="ruby-keyword">self</span>.<span class="ruby-identifier">dupped_binding</span> = <span class="ruby-identifier">b</span>.<span class="ruby-identifier">dup</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-file_lines" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">file_lines</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="file_lines-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 67</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">file_lines</span>
  <span class="ruby-constant">SESSION</span>.<span class="ruby-identifier">source</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">iseq</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-frame_type" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">frame_type</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="frame_type-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 71</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">frame_type</span>
  <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">local_variables</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">iseq</span>
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">iseq</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value">:block</span>
      <span class="ruby-value">:block</span>
    <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">callee</span>
      <span class="ruby-value">:method</span>
    <span class="ruby-keyword">else</span>
      <span class="ruby-value">:other</span>
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-value">:c</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-iseq_parameters_info" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">iseq_parameters_info</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="iseq_parameters_info-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 150</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">iseq_parameters_info</span>
  <span class="ruby-keyword">case</span> <span class="ruby-identifier">frame_type</span>
  <span class="ruby-keyword">when</span> <span class="ruby-value">:block</span>, <span class="ruby-value">:method</span>
    <span class="ruby-identifier">parameters_info</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-keyword">nil</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-local_variables" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">local_variables</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="local_variables-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 140</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">local_variables</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">lvars</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">_local_variables</span>
    <span class="ruby-identifier">lvars</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">b</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">binding</span>
    <span class="ruby-identifier">b</span>.<span class="ruby-identifier">local_variables</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">var</span><span class="ruby-operator">|</span>
      [<span class="ruby-identifier">var</span>, <span class="ruby-identifier">b</span>.<span class="ruby-identifier">local_variable_get</span>(<span class="ruby-identifier">var</span>)]
    }.<span class="ruby-identifier">to_h</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-location_str" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">location_str</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="location_str-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 127</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">location_str</span>
  <span class="ruby-node">&quot;#{pretty_path}:#{location.lineno}&quot;</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-matchable_location" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">matchable_location</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="matchable_location-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 122</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">matchable_location</span>
  <span class="ruby-comment"># realpath can sometimes be nil so we can&#39;t use it here</span>
  <span class="ruby-node">&quot;#{path}:#{location.lineno}&quot;</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-method_identifier" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">method_identifier</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="method_identifier-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 93</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">method_identifier</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">frame_type</span> <span class="ruby-operator">==</span> <span class="ruby-value">:method</span>
  <span class="ruby-node">&quot;#{klass_sig}#{callee}&quot;</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-name" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">name</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="name-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 52</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">name</span>
  <span class="ruby-comment"># p frame_type: frame_type, self: self</span>
  <span class="ruby-keyword">case</span> <span class="ruby-identifier">frame_type</span>
  <span class="ruby-keyword">when</span> <span class="ruby-value">:block</span>
    <span class="ruby-identifier">level</span>, <span class="ruby-identifier">block_loc</span> = <span class="ruby-identifier">block_identifier</span>
    <span class="ruby-node">&quot;block in #{block_loc}#{level}&quot;</span>
  <span class="ruby-keyword">when</span> <span class="ruby-value">:method</span>
    <span class="ruby-identifier">method_identifier</span>
  <span class="ruby-keyword">when</span> <span class="ruby-value">:c</span>
    <span class="ruby-identifier">c_identifier</span>
  <span class="ruby-keyword">when</span> <span class="ruby-value">:other</span>
    <span class="ruby-identifier">other_identifier</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-other_identifier" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">other_identifier</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="other_identifier-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 103</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">other_identifier</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">frame_type</span> <span class="ruby-operator">==</span> <span class="ruby-value">:other</span>
  <span class="ruby-identifier">location</span>.<span class="ruby-identifier">label</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-parameters_info" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">parameters_info</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="parameters_info-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 159</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">parameters_info</span>
  <span class="ruby-identifier">vars</span> = <span class="ruby-identifier">iseq</span>.<span class="ruby-identifier">parameters_symbols</span>
  <span class="ruby-identifier">vars</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">var</span><span class="ruby-operator">|</span>
    <span class="ruby-keyword">begin</span>
      { <span class="ruby-value">name:</span> <span class="ruby-identifier">var</span>, <span class="ruby-value">value:</span> <span class="ruby-constant">DEBUGGER__</span>.<span class="ruby-identifier">safe_inspect</span>(<span class="ruby-identifier">local_variable_get</span>(<span class="ruby-identifier">var</span>), <span class="ruby-value">short:</span> <span class="ruby-keyword">true</span>) }
    <span class="ruby-keyword">rescue</span> <span class="ruby-constant">NameError</span>, <span class="ruby-constant">TypeError</span>
      <span class="ruby-keyword">nil</span>
    <span class="ruby-keyword">end</span>
  }.<span class="ruby-identifier">compact</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-path" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">path</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="path-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 22</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">path</span>
  <span class="ruby-identifier">location</span>.<span class="ruby-identifier">path</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-pretty_path" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">pretty_path</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="pretty_path-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 48</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">pretty_path</span>
  <span class="ruby-constant">FrameInfo</span>.<span class="ruby-identifier">pretty_path</span> <span class="ruby-identifier">path</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-realpath" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">realpath</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="realpath-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 26</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">realpath</span>
  <span class="ruby-identifier">location</span>.<span class="ruby-identifier">absolute_path</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-return_str" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">return_str</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="return_str-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 116</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">return_str</span>
  <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">binding</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">iseq</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">has_return_value</span>
    <span class="ruby-constant">DEBUGGER__</span>.<span class="ruby-identifier">safe_inspect</span>(<span class="ruby-identifier">return_value</span>, <span class="ruby-value">short:</span> <span class="ruby-keyword">true</span>)
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

                <section id="private-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Private Instance Methods</h3>
                </header>

                  <div id="method-i-get_singleton_class" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">get_singleton_class</span><span
                                class="method-args">(obj)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="get_singleton_class-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 170</span>
        <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">get_singleton_class</span> <span class="ruby-identifier">obj</span>
  <span class="ruby-identifier">obj</span>.<span class="ruby-identifier">singleton_class</span> <span class="ruby-comment"># TODO: don&#39;t use it</span>
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">TypeError</span>
  <span class="ruby-keyword">nil</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-klass_sig" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">klass_sig</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="klass_sig-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 180</span>
        <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">klass_sig</span>
  <span class="ruby-keyword">if</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">get_singleton_class</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">self</span>)
    <span class="ruby-node">&quot;#{self.self}.&quot;</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-node">&quot;#{self.class}#&quot;</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-local_variable_get" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">local_variable_get</span><span
                                class="method-args">(var)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="local_variable_get-source">
            <pre><span class="ruby-comment"># File debug-1.8.0/lib/debug/frame_info.rb, line 176</span>
        <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">local_variable_get</span> <span class="ruby-identifier">var</span>
  <span class="ruby-identifier">local_variables</span>[<span class="ruby-identifier">var</span>]
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

              </section>
              </main>



            </div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is a service of <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>, purveyors of fine <a href='https://jamesbritt.bandcamp.com/'>dance noise</a></p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

